* {
    padding: 0;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
}

i {
    font-style: normal;
}

a {
    text-decoration: none;
    display: block;
}

img {
    display: block;
}

html,
body {
    height: 100%;
    width: 100%;
}

.container {
    @extend html;
    background: #f5f5f5;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

header {
    width: 100%;
    height: .85rem;
    background: #FFCC33;
    flex-shrink: 0;
}

.address {
    height: 40%;
    width: 96%;
    margin: .03rem auto;
    display: flex;
    align-items: center;
    font-weight: bold;
    line-height: .35rem;

    // display: none;
    img {
        width: .15rem;
        height: .15rem;

        &:nth-child(1) {
            width: .2rem;
            height: .2rem;
            margin-left: .05rem;
        }
    }

    span {
        font-size: .14rem;
    }
}

// 隐藏地址栏 修改header高度
.hidden {
    display: none;
}

.search {
    height: 44%;
    width: 94%;
    background: white;
    border-radius: .2rem;
    display: flex;
    margin: .05rem .1rem;
    justify-content: space-between;

    div {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-top: .01rem;

        img {
            margin-left: .1rem;
            width: .16rem;
            height: .16rem;
        }

        input {
            font-size: .13rem;
            margin-left: .1rem;
            border-style: none;
            outline: 0;
            height: 90%;
        }
    }

    i {
        width: .7rem;
        height: 82%;
        background-color: #FFCC33;
        border-radius: .2rem;
        text-align: center;
        line-height: .3rem;
        margin-top: .035rem;
        margin-right: .05rem;
        font-size: .14rem;
    }
}

main {
    width: 100%;
    flex: 1;
    overflow: hidden;
    .scroll-box{
        width: 100%;
        // position: relative;
    }
    .pulldown{
        height: .5rem;
        background: white;
        width: 100%;
        color: grey;
        line-height: .5rem;
        text-align: center;
        position: absolute;
        top: -.5rem;
    }
    .pullup{
        height: .5rem;
        background: white;
        width: 100%;
        color: grey;
        line-height: .5rem;
        text-align: center;
        position: absolute;
    }
}

nav {
    width: 100%;
    height: 1.5rem;
    // background: red;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    margin: .1rem 0;

    div {
        width: .71rem;
        height: .72rem;
        display: flex;
        flex-direction: column;
        align-items: center;

        img {
            width: .44rem;
            height: .44rem;
        }

        span {
            width: 100%;
            height: .17rem;
            text-align: center;
            line-height: .17rem;
            font-size: .12rem;
            font-weight: lighter;
        }
    }

}

.srcollImg {
    height: .9rem;
    width: 92%;
    margin: 0 .14rem;
    overflow: hidden;
    border-radius: .12rem;

    .swiper-wrapper {
        width: 100%;
        height: 100%;

        img {
            height: 100%;
            width: 100%;
            display: block;
        }
    }
}
.tags {
    width: 100%;
    height: .38rem;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-around;
    div {
        width: .7rem;
        height: .25rem;
        background: white;
        border-radius: 5px;
        text-align: center;
        line-height: .25rem;
        font-size: .12rem;
        color: rgb(79, 79, 79);

        &:nth-child(5) {
            background: transparent;
            width: .24rem;
            height: .28rem;

            img {
                margin-top: .03rem;
                width: 100%;
            }
        }
    }
}

.goods {
    width: 100%;

    a {
        color: black;
        margin: .1rem auto;
        width: 96%;
        height: 1.1165rem;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: .1rem;

        &:nth-child(1) {
            margin-top: .02rem;
        }

        img {
            margin-right: .1rem;
            width: 0.9745rem;
            height: 0.9745rem;
            border-radius: .1rem;
        }
    }
}

.info {
    li {
        font-size: .14rem;
        width: 2.223rem;

        &:nth-child(1) {
            height: .2rem;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            flex-wrap: nowrap;

            // overflow: hidden;
            img {
                width: .2944rem;
                height: .16rem;
            }

            span {
                // width: 2rem;
                font-size: .16rem;
                height: .2rem;
                // line-height: .232rem;
                overflow: hidden;
                margin-right: .2rem;
            }
        }

        &:nth-child(2) {
            width: 100%;
            height: .1401rem;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            margin-top: .05rem;

            span {
                font-size: .13rem;
                color: rgb(163, 162, 162);
            }

            p {
                margin-left: .02rem;
                margin-right: .1rem;
                color: #ff8000;
                font-size: .11rem;
            }
        }

        &:nth-child(3) {
            span {
                font-size: .11rem;
                color: rgb(163, 162, 162);

                &:nth-child(3) {
                    margin-left: .35rem;
                }
            }
        }

        &:nth-child(4) {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: flex-start;
            height: .2rem;
            width: 2rem;
            overflow: hidden;

            img {
                width: .2rem;
                height: .2rem;
                margin-right: .02rem;
                background: #9b7638;
            }

            span {
                line-height: .2rem;
                font-size: .12rem;
                color: #9b7638;
                height: 100%;
                background: #fbf6e8;
                padding: 0 .05rem;
                border-radius: .05rem;
            }
        }

        &:nth-child(5) {
            font-size: .1rem;
            display: flex;
            flex-flow: row nowrap;
            align-items: center;
            justify-content: flex-start;
            margin: 0.06rem 0;

            p {
                border-radius: .03rem;
                height: 100%;
                border: .005rem solid red;
                color: red;
                margin: 0 .02rem;
            }
        }
    }
}


footer {
    flex-shrink: 0;
    width: 100%;
    height: .5rem;
    display: flex;
    justify-content: space-between;
    background: #FAFAFA;
    a {
        width: 33.33%;
        height: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;

        img {
            margin-top: .03rem;
            width: .27rem;
        }

        span {
            font-size: .12rem;
            color: rgb(50, 50, 50);
            font-weight: lighter;
        }
    }
}